package com.coda.mapper;

import com.coda.entity.LeaseAgreement;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface LeaseMapper {
    /**
     * 判断是否入住
     * @param apartmentId
     * @param id
     * @return
     */
    @Select("select * from lease_agreement where apartment_id = #{apartmentId} and room_id = #{id} ")
    LeaseAgreement getStatus(@Param("apartmentId") Long apartmentId, @Param("id") Long id);
}
